package com.ty.store.mapper;

import com.ty.store.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author ty
 */
public interface UserMapper {
    public Integer insert(User user);
    public User findUsername(String username );
    public Integer updateById(Integer uid, String password, String modifiedUser, Date modifiedTime);
    public User findUserById(Integer uid);
    public Integer updateByUid(User user);
    public User findTest(User user );
    public Integer updateAvatarByUid(
      @Param("uid") Integer uid,
      @Param("avatar") String avatar,
      @Param("modifiedUser") String modifiedUser,
      @Param("modifiedTime") Date modifiedTime
    );
}
